# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

desc "自动化打包"
lane :package do |options|

export_method = options[:export_method]
configuration = options[:configuration]
scheme = options[:scheme]
output_name = configuration + "_" + options[:v]
output_directory = "./Build/" + configuration

gym(
  clean:true, #打包前clean项目
  export_method: export_method, #导出方式
  scheme: scheme, #scheme
  configuration: configuration,#环境
  output_directory: output_directory,
  output_name: output_name
  )

end
